package com.example.demo.dao;

import com.example.demo.pojo.Book;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface BookDao {
    @Insert("insert into book()")
    int add(Book book);
    int delete(Integer id);
    int update(Book book);
    Book get(Integer id);
    List<Book> getAll();
}
